package com.validator.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("phone_prefix")
public class PhonePrefix {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("country")
    private String country;
    @TableField("prefix")
    private Integer prefix;
    @TableField("area")
    private String area;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public Integer getPrefix() {
        return prefix;
    }

    public void setPrefix(Integer prefix) {
        this.prefix = prefix;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "PhonePrefix{" +
                "id=" + id +
                ", country='" + country + '\'' +
                ", prefix=" + prefix +
                ", area='" + area + '\'' +
                '}';
    }
}
